//
//  PayMentGoodModel.m
//  shanHaiHuiApp
//
//  Created by DS on 2018/3/17.
//  Copyright © 2018年 徐双. All rights reserved.
//

#import "PayMentGoodModel.h"
#import "PayMentSpphModel.h"

@implementation PayMentGoodModel

- (void)payMentGoodModelWithDic:(NSDictionary *)dic{
    
    self.spbh = [dic objectForKey:@"spbh"];
    self.spmc = [dic objectForKey:@"spmc"];
    self.xssl = [dic objectForKey:@"xssl"];
    self.xsje = [dic objectForKey:@"xsje"];
    self.imagepfilename = [dic objectForKey:@"imagepfilename"];
    self.xsdj = [dic objectForKey:@"xsdj"];
    self.isOpening = [dic objectForKey:@"isOpening"];
    
    
    for (NSDictionary * spphDic in dic[@"spphList"]) {
        PayMentSpphModel * spphModel = [[PayMentSpphModel alloc] init];
        
        [spphModel payMentSpphModelWithDic:spphDic];
        
        if (!self.spphList) {
            self.spphList = [NSMutableArray array];
        }
        [self.spphList addObject:spphModel];
    }
    
    
    
}

@end
